import requests from './request.js';

// 点击注册
export const userRegister = (data) => requests({
    url: '/user/register',
    method: 'post',
    data: data,
});

// 验证用户名是否唯一
export const checkUserNameApi = (data) => requests({
    url: `/user/checkUserName?userName=${data}`,
    method: 'get',
});

// 验证手机号是否重复
export const checkPhoneApi = (data) => requests({
    url: `/user/checkPhone?userPhone=${data}`,
    method: 'get',
});